package io.renren.modules.xk.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.renren.common.validator.group.AddGroup;
import io.renren.common.validator.group.UpdateGroup;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 课程信息
 *
 * @author Mark sunlightcs@gmail.com
 */
@Data
@TableName("xk_course")
public class XkCourseEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	
	/**
	 * 课程ID
	 */
	@TableId
	private Long courseId;

	/**
	 * 课程名称
	 */
	@NotBlank(message="课程名称不能为空", groups = {AddGroup.class, UpdateGroup.class})
	private String courseName;

	/**
	 * 学分
	 */
	private String courseRedit;
}
